
allFuncs["SubmitContact"] = function() {
	var valid = new Validation('contactform', {immediate:true});
	if (valid.validate()) {
		new Ajax.Request(self.location+'?ajax=1', {
			parameters: $('contactform').serialize(true), 
			onLoading: function() { $('contact-loading').toggle('appear'); },
			onComplete: function() { $('contact-loading').toggle('appear'); },
			onSuccess: function(transport) { $('contact-flash').innerHTML = transport.responseText; },
			onFailure: function(transport) { $('contact-flash').innerHTML = " Ajax Request Failed "; }
		});
	}
	return false;
}
